package com.search.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "search") // yml对象名一致
public class SearchConfigEntity {

	private String field;// 检索字段
	private String fields;// 检索可用字段
	private String sort;// 排序字段
	private String sorts;// 排序可用字段
	private String groupby;// 分类统计字段
	private String groupbynum;// 分组统计数量
	private String siteid;// 站点筛选字段
	private String channelid;// 栏目筛选数量

	public SearchConfigEntity() {
		super();
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getFields() {
		return fields;
	}

	public void setFields(String fields) {
		this.fields = fields;
	}

	public String getGroupby() {
		return groupby;
	}

	public void setGroupby(String groupby) {
		this.groupby = groupby;
	}

	public String getGroupbynum() {
		return groupbynum;
	}

	public void setGroupbynum(String groupbynum) {
		this.groupbynum = groupbynum;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getSorts() {
		return sorts;
	}

	public void setSorts(String sorts) {
		this.sorts = sorts;
	}

	public String getSiteid() {
		return siteid;
	}

	public void setSiteid(String siteid) {
		this.siteid = siteid;
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	@Override
	public String toString() {
		return "SearchConfigEntity [field=" + field + ", fields=" + fields + ", sort=" + sort + ", sorts=" + sorts
				+ ", groupby=" + groupby + ", groupbynum=" + groupbynum + ", siteid=" + siteid + ", channelid="
				+ channelid + "]";
	}

}
